package com.hdoit.ares.logical.brokerage.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.tennetcn.common.message.ModelBase;
/**
 * @author      yujinhui
 * @email       
 * @createtime  2017年12月02日 14:22:49
 * @comment
 */
@Entity
@Table(name="brokerage_record")
public class BrokerageRecord extends ModelBase{
    //主键
    @Id
    @Column(name="id")
    private String id;

    //佣金
    @Column(name="brokerage")
    private double brokerage;

    //提成比例
    @Column(name="proportion")
    private double proportion;

    //佣金所有者
    @Column(name="userId")
    private String userId;

    //记录时间
    @Column(name="recordDate")
    private Date recordDate;

    //佣金币种
    @Column(name="currency")
    private String currency;
    
    //税收百分比
    @Column(name="taxPercent")
    private Double taxPercent;
    
    //犹豫期
    @Column(name="hesitateDate")
    private Integer hesitateDate;
    
    //公司名称
    @Column(name="companyName")
    private String companyName;
    
    //商品id
    @Column(name="productId")
    private String productId;
    
    //订单号
    @Column(name="orderSn")
    private String orderSn;
    
    //保单号
    @Column(name="policyNo")
    private String policyNo;
    
    //购买产品
    @Transient
    private String productName;
   
    //消费人
    @Transient
    private String customerName;
    
    //消费人编号
    @Transient
    private Integer userIdentity;
    

    public String getPolicyNo() {
		return policyNo;
	}
	public void setPolicyNo(String policyNo) {
		this.policyNo = policyNo;
	}
	public String getOrderSn() {
		return orderSn;
	}
	public void setOrderSn(String orderSn) {
		this.orderSn = orderSn;
	}
	
	public String getId(){
        return this.id;
    }
    public void setId(String id){
         this.id=id;
    }

    public double getBrokerage(){
        return this.brokerage;
    }
    public void setBrokerage(double brokerage){
         this.brokerage=brokerage;
    }

    public double getProportion(){
        return this.proportion;
    }
    public void setProportion(double proportion){
         this.proportion=proportion;
    }

    public String getUserId(){
        return this.userId;
    }
    public void setUserId(String userId){
         this.userId=userId;
    }

    public Date getRecordDate(){
        return this.recordDate;
    }
    public void setRecordDate(Date recordDate){
         this.recordDate=recordDate;
    }

    public String getCurrency(){
        return this.currency;
    }
    public void setCurrency(String currency){
         this.currency=currency;
    }
	public String getCustomerName() {
		return customerName;
	}
	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}
	public Integer getUserIdentity() {
		return userIdentity;
	}
	public void setUserIdentity(Integer userIdentity) {
		this.userIdentity = userIdentity;
	}

	public Double getTaxPercent() {
		return taxPercent;
	}
	public void setTaxPercent(Double taxPercent) {
		this.taxPercent = taxPercent;
	}
	public Integer getHesitateDate() {
		return hesitateDate;
	}
	public void setHesitateDate(Integer hesitateDate) {
		this.hesitateDate = hesitateDate;
	}
	public String getCompanyName() {
		return companyName;
	}
	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	public String getProductId() {
		return productId;
	}
	public void setProductId(String productId) {
		this.productId = productId;
	}
	public String getProductName() {
		return productName;
	}
	public void setProductName(String productName) {
		this.productName = productName;
	}
    
    

}